package edu.ucsc.mit2008.swan.coreUI;

import org.osgi.framework.BundleActivator;
import org.osgi.framework.BundleContext;

/**
 * Activator for the Swan core UI plugin.
 * 
 * @author Thushara Sanjeewa Ramasinghe
 */
public class SwanCoreUIPlugin implements BundleActivator {

	private static BundleContext context;

	static BundleContext getContext() {
		return context;
	}

	/**
	 * {@inheritDoc}
	 */
	public void start(BundleContext bundleContext) throws Exception {
		SwanCoreUIPlugin.context = bundleContext;
		System.err.println("Swan core ui runing");
	}

	/**
	 * {@inheritDoc}
	 */
	public void stop(BundleContext bundleContext) throws Exception {
		SwanCoreUIPlugin.context = null;
	}

}
